<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0098)http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/ -->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US"><head profile="http://gmpg.org/xfn/11"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Installing Django with Apache and mod_wsgi on Ubuntu 10.04</title>

	

	<meta name="robots" content="index,follow">

	<link rel="canonical" href="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/Installing Django with Apache and mod_wsgi on Ubuntu 10.04.html">

	<link rel="stylesheet" type="text/css" href="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/style.css">

	<link rel="alternate" type="application/rss+xml" href="http://blog.stannard.net.au/feed/" title="Mere Mortals Posts RSS feed">
	<link rel="alternate" type="application/rss+xml" href="http://blog.stannard.net.au/comments/feed/" title="Mere Mortals Comments RSS feed">

	<link rel="pingback" href="http://blog.stannard.net.au/xmlrpc.php">

<link rel="alternate" type="application/rss+xml" title="Mere Mortals » Installing Django with Apache and mod_wsgi on Ubuntu 10.04 Comments Feed" href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/feed/">
<script type="text/javascript" async="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/ga.js"></script><script type="text/javascript" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/jquery.js"></script>
<script type="text/javascript" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/comment-reply.js"></script>
<script type="text/javascript" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/external-tracking.min.js"></script>
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://blog.stannard.net.au/xmlrpc.php?rsd">
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://blog.stannard.net.au/wp-includes/wlwmanifest.xml"> 
<link rel="index" title="Mere Mortals" href="http://blog.stannard.net.au/">
<link rel="start" title="Nested Set Trees in ColdFusion (v0.8)" href="http://blog.stannard.net.au/2008/08/25/nested-set-trees-in-coldfusion-v08/">
<link rel="prev" title="Setting up Open Source Flex SDK with debugging on Ubuntu" href="http://blog.stannard.net.au/2010/09/22/setting-up-open-source-flex-sdk-with-debugging-on-ubuntu/">
<link rel="next" title="Creating a form with labels inside text fields using jQuery" href="http://blog.stannard.net.au/2011/01/07/creating-a-form-with-labels-inside-text-fields-using-jquery/">

<link rel="canonical" href="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/Installing Django with Apache and mod_wsgi on Ubuntu 10.04.html">
<link rel="shortlink" href="http://blog.stannard.net.au/?p=200">

<link rel="stylesheet" href="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/wp-syntax.css" type="text/css" media="screen">

	<script type="text/javascript" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/hoverIntent.js"></script>
	<script type="text/javascript" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/superfish.js"></script>
	<script type="text/javascript" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/supersubs.js"></script>
	<script type="text/javascript" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/thematic-dropdowns.js"></script>

	<script type="text/javascript">
		jQuery.noConflict();
	</script>
	<style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
<!-- Google Analytics Tracking by Google Analyticator 6.1.1: http://ronaldheft.com/code/analyticator/ -->
<script type="text/javascript">
	var analyticsFileTypes = [''];
	var analyticsEventTracking = 'enabled';
</script>
<script type="text/javascript">
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-16164420-1']);
	_gaq.push(['_trackPageview']);

	(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
</script>

<link type="text/css" rel="stylesheet" href="chrome-extension://cpngackimfmofbokmjmljamhdncknpmg/style.css"><script type="text/javascript" charset="utf-8" src="chrome-extension://cpngackimfmofbokmjmljamhdncknpmg/page_context.js"></script></head>


<body class="wordpress y2012 m09 d25 h09 singular slug-installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04 single postid-200 s-y2010 s-m12 s-d11 s-h00 s-category-django s-tag-django s-tag-python s-tag-ubuntu s-tag-wsgi s-author-admin s-comments-open s-pings-open linux chrome ch" screen_capture_injected="true">
    

<div id="wrapper" class="hfeed">

       

    <div id="header">
    
        		    	<div id="branding">
				    		<div id="blog-title"><span><a href="http://blog.stannard.net.au/" title="Mere Mortals" rel="home">Mere Mortals</a></span></div>
			
		    		<div id="blog-description"></div>
		    				    	</div><!--  #branding -->
				    	<div id="access">
		    		<div class="skip-link"><a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#content" title="Skip navigation to the content">Skip to content</a></div>
		            <div class="menu"><ul class="sf-menu sf-js-enabled"><li class="page_item page-item-43"><a href="http://blog.stannard.net.au/about/" title="About">About</a></li><li class="page_item page-item-37"><a href="http://blog.stannard.net.au/nested-set-trees/" title="Nested Set Trees">Nested Set Trees</a><ul class="children" style="float: none; width: 15.545454545454545em; display: none; visibility: hidden; "><li class="page_item page-item-41" style="white-space: normal; float: left; width: 100%; "><a href="http://blog.stannard.net.au/nested-set-trees/nested-set-trees-objects/" title="Nested Set Tree Objects" style="float: none; width: auto; ">Nested Set Tree Objects</a></li></ul></li></ul></div>
		        </div><!-- #access -->
		        
    </div><!-- #header-->
    
       

    <div id="main">
    
	<div id="container">
		<div id="content">

            
			<div id="nav-above" class="navigation">
				<div class="nav-previous"><a href="http://blog.stannard.net.au/2010/09/22/setting-up-open-source-flex-sdk-with-debugging-on-ubuntu/" rel="prev"><span class="meta-nav">«</span> Setting up Open Source Flex SDK with debugging on Ubuntu</a></div>
				<div class="nav-next"><a href="http://blog.stannard.net.au/2011/01/07/creating-a-form-with-labels-inside-text-fields-using-jquery/" rel="next">Creating a form with labels inside text fields using jQuery <span class="meta-nav">»</span></a></div>
			</div>

			<div id="post-200" class="hentry p1 post publish author-kevan-stannard category-django tag-django tag-python tag-ubuntu tag-wsgi comments-open pings-open y2010 m12 d11 h00 slug-installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04">
    			<h1 class="entry-title">Installing Django with Apache and mod_wsgi on Ubuntu 10.04</h1>
<div class="entry-meta"><span class="meta-prep meta-prep-author">By </span><span class="author vcard"><a class="url fn n" href="http://blog.stannard.net.au/author/admin/" title="View all posts by Kevan Stannard">Kevan Stannard</a></span><span class="meta-sep meta-sep-entry-date"> | </span><span class="meta-prep meta-prep-entry-date">Published: </span><span class="entry-date"><abbr class="published" title="2010-12-11T00:33:43+0000">December 11, 2010</abbr></span></div><!-- .entry-meta -->
				<div class="entry-content">
<p>Step by step instructions for installing Django with Apache and mod_wsgi on Ubuntu 10.04.</p>
<p><span id="more-200"></span></p>
<h2>PART 1 – Prepare the server</h2>
<p><strong>Update the server</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo apt-get update
&gt; sudo apt-get upgrade</pre></div></div>

<p><strong>Install Apache and mod_wsgi</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo apt-get install apache2 libapache2-mod-wsgi</pre></div></div>

<p><strong>Install setup tools and pip</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo apt-get install python-setuptools
&gt; sudo apt-get install python-pip</pre></div></div>

<p><strong>Install Django</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo pip install django</pre></div></div>

<p><strong>Create a folder for storing our sites</strong></p>
<p>I’ll be placing our sites in the /srv/www directory. The /srv directory should already exist so we just need to create the /www directory</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo mkdir /srv/www</pre></div></div>

<h2>PART 2 – Add host entries for testing</h2>
<p>We will set up two domains for testing the configuration<br>
- one for testing that WSGI is working, and<br>
- one for testing that Django is working.</p>
<p>My test virtual machine’s IP address is 172.16.52.130 so I’ll set up the following in my <strong>local</strong> hosts file (not on the server)</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo nano /etc/hosts</pre></div></div>

<p>And add the following</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">172.16.52.130    djangoserver
172.16.52.130    wsgi.djangoserver
172.16.52.130    hello.djangoserver</pre></div></div>

<h2>PART 3 – Test WSGI is working</h2>
<p>Create our wsgi test site content</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo mkdir /srv/www/wsgi
&gt; sudo nano /srv/www/wsgi/app.wsgi</pre></div></div>

<p>And add the content</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">def</span> application<span style="color: black;">(</span>environ, start_response<span style="color: black;">)</span>:
    status = <span style="color: #483d8b;">'200 OK'</span>
    output = <span style="color: #483d8b;">'Hello World!'</span>
&nbsp;
    response_headers = <span style="color: black;">[</span><span style="color: black;">(</span><span style="color: #483d8b;">'Content-type'</span>, <span style="color: #483d8b;">'text/plain'</span><span style="color: black;">)</span>,
                        <span style="color: black;">(</span><span style="color: #483d8b;">'Content-Length'</span>, <span style="color: #008000;">str</span><span style="color: black;">(</span><span style="color: #008000;">len</span><span style="color: black;">(</span>output<span style="color: black;">)</span><span style="color: black;">)</span><span style="color: black;">)</span><span style="color: black;">]</span>
    start_response<span style="color: black;">(</span>status, response_headers<span style="color: black;">)</span>
&nbsp;
    <span style="color: #ff7700;font-weight:bold;">return</span> <span style="color: black;">[</span>output<span style="color: black;">]</span></pre></div></div>

<p>Create a new apache site</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo nano /etc/apache2/sites-available/wsgi</pre></div></div>

<p>And add the content</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&lt;VirtualHost *:80&gt;
&nbsp;
    ServerName wsgi.djangoserver
    DocumentRoot /srv/www/wsgi
&nbsp;
    &lt;Directory /srv/www/wsgi&gt;
        Order allow,deny
        Allow from all
    &lt;/Directory&gt;
&nbsp;
    WSGIScriptAlias / /srv/www/wsgi/app.wsgi
&nbsp;
&lt;/VirtualHost&gt;</pre></div></div>

<p>And activate the site</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo a2ensite wsgi
&gt; sudo /etc/init.d/apache2 reload</pre></div></div>

<p>Then open your web browser and browse to</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">http://wsgi.djangoserver</pre></div></div>

<p>You should see a ‘Hello World!’ message</p>
<h2>PART 4 – Test Django is working</h2>
<p><strong>Create a new Django site</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; cd /srv/www
&gt; sudo django-admin.py startproject hello</pre></div></div>

<p>Create a wsgi file for the site</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo mkdir /srv/www/hello/apache
&gt; sudo nano /srv/www/hello/apache/django.wsgi</pre></div></div>

<p>And add the content</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">sys</span>
&nbsp;
path = <span style="color: #483d8b;">'/srv/www'</span>
<span style="color: #ff7700;font-weight:bold;">if</span> path <span style="color: #ff7700;font-weight:bold;">not</span> <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #dc143c;">sys</span>.<span style="color: black;">path</span>:
    <span style="color: #dc143c;">sys</span>.<span style="color: black;">path</span>.<span style="color: black;">insert</span><span style="color: black;">(</span><span style="color: #ff4500;">0</span>, <span style="color: #483d8b;">'/srv/www'</span><span style="color: black;">)</span>
&nbsp;
<span style="color: #dc143c;">os</span>.<span style="color: black;">environ</span><span style="color: black;">[</span><span style="color: #483d8b;">'DJANGO_SETTINGS_MODULE'</span><span style="color: black;">]</span> = <span style="color: #483d8b;">'hello.settings'</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> django.<span style="color: black;">core</span>.<span style="color: black;">handlers</span>.<span style="color: black;">wsgi</span>
application = django.<span style="color: black;">core</span>.<span style="color: black;">handlers</span>.<span style="color: black;">wsgi</span>.<span style="color: black;">WSGIHandler</span><span style="color: black;">(</span><span style="color: black;">)</span></pre></div></div>

<p><strong>Create a new apache site</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo nano /etc/apache2/sites-available/hello</pre></div></div>

<p>And add the content</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&lt;VirtualHost *:80&gt;
&nbsp;
    ServerName hello.djangoserver
    DocumentRoot /srv/www/hello
&nbsp;
    &lt;Directory /srv/www/hello&gt;
        Order allow,deny
        Allow from all
    &lt;/Directory&gt;
&nbsp;
    WSGIDaemonProcess hello.djangoserver processes=2 threads=15 display-name=%{GROUP}
    WSGIProcessGroup hello.djangoserver
&nbsp;
    WSGIScriptAlias / /srv/www/hello/apache/django.wsgi
&nbsp;
&lt;/VirtualHost&gt;</pre></div></div>

<p>And activate the site</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo a2ensite hello
&gt; sudo /etc/init.d/apache2 reload</pre></div></div>

<p>Then open your web browser and browse to</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">http://hello.djangoserver</pre></div></div>

<p>You should see the Django default installation message.</p>
<h2>Notes</h2>
<p><strong>NOTE 1 – Running in daemon mode</strong></p>
<p>Our test Django site is configured to run in daemon mode – because of these two lines:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">WSGIDaemonProcess hello.djangoserver processes=2 threads=15 display-name=%{GROUP}
WSGIProcessGroup hello.djangoserver</pre></div></div>

<p>So if we modify the code then rather than restarting apache we can just <strong>touch</strong> the wsgi file and the changes will be picked up:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; sudo touch /srv/www/hello/apache/django.wsgi</pre></div></div>

<p><strong>NOTE 2 – Specify the application module name</strong></p>
<p>It appears to be a good idea to specify the application module when specifying the DJANGO_SETTINGS_MODULE. So rather than writing this:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'</pre></div></div>

<p>We should write this:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">os.environ['DJANGO_SETTINGS_MODULE'] = 'hello.settings'</pre></div></div>

<h2>Useful Commands</h2>
<p><strong>Error log file</strong></p>
<p>If you get errors, check the apache log file</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; tail /var/log/apache2/error.log</pre></div></div>

<p><strong>Test using development mode</strong></p>
<p>If your app does not seem to be working using wsgi, then check if it is working via the development server.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">&gt; cd /srv/www/hello
&gt; python manage.py runserver 0:8080</pre></div></div>

<p>The in your web browser go to</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">http://hello.djangoserver:8080</pre></div></div>

<h2>References</h2>
<p>An improved WSGI script for use with Django.<br>
<a href="http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html">http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html</a></p>
<p>Modwsgi – Integration With Django<br>
<a href="http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango">http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango</a></p>
<p>How do I stop getting ImportError: Could not import settings ‘mofin.settings’ when using django with wsgi?<br>
<a href="http://stackoverflow.com/questions/1411417/how-do-i-stop-getting-importerror-could-not-import-settings-mofin-settings-whe">http://stackoverflow.com/questions/1411417/how-do-i-stop-getting-importerror-could-not-import-settings-mofin-settings-whe</a></p>
<p>Configuration problems with django and mod_wsgi<br>
<a href="http://stackoverflow.com/questions/2587251/configuration-problems-with-django-and-mod-wsgi">http://stackoverflow.com/questions/2587251/configuration-problems-with-django-and-mod-wsgi</a></p>

									</div>
				<div class="entry-utility"><span class="cat-links">This entry was posted in <a href="http://blog.stannard.net.au/category/django/" title="View all posts in Django" rel="category tag">Django</a></span><span class="tag-links">  and tagged <a href="http://blog.stannard.net.au/tag/django/" rel="tag">Django</a>, <a href="http://blog.stannard.net.au/tag/python/" rel="tag">Python</a>, <a href="http://blog.stannard.net.au/tag/ubuntu/" rel="tag">Ubuntu</a>, <a href="http://blog.stannard.net.au/tag/wsgi/" rel="tag">WSGI</a></span>. Bookmark the <a href="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/Installing Django with Apache and mod_wsgi on Ubuntu 10.04.html" title="Permalink to Installing Django with Apache and mod_wsgi on Ubuntu 10.04">permalink</a>. <a class="comment-link" href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#respond" title="Post a comment">Post a comment</a> or leave a trackback: <a class="trackback-link" href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/trackback/" title="Trackback URL for your post" rel="trackback">Trackback URL</a>.</div><!-- .entry-utility -->
			</div><!-- .post -->

			<div id="nav-below" class="navigation">
				<div class="nav-previous"><a href="http://blog.stannard.net.au/2010/09/22/setting-up-open-source-flex-sdk-with-debugging-on-ubuntu/" rel="prev"><span class="meta-nav">«</span> Setting up Open Source Flex SDK with debugging on Ubuntu</a></div>
				<div class="nav-next"><a href="http://blog.stannard.net.au/2011/01/07/creating-a-form-with-labels-inside-text-fields-using-jquery/" rel="next">Creating a form with labels inside text fields using jQuery <span class="meta-nav">»</span></a></div>
			</div>

			<div id="comments">





				<div id="comments-list" class="comments">
					<h3><span>30</span> Comments</h3>
				
					<ol>
    	<li id="comment-1266" class="comment c c-y2011 c-m01 c-d08 c-h18 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/dd22c17f93e59934a55aa419095d79c8" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Mike</span></div>
    		<div class="comment-meta">Posted January 8, 2011 at 6:42 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1266" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Great walk through! Thanks for doing this. </p>
<p>Helped me get up and running quickly so now I can play around with Django</p>
    		</div>
			</li>
    	<li id="comment-1333" class="comment c1 c-y2011 c-m01 c-d21 c-h13 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/a9e40963b016b88a65e5354457e9468f" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Jason</span></div>
    		<div class="comment-meta">Posted January 21, 2011 at 1:48 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1333" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Thanks for this great tutorial. It was my first time using mod_wsgi and I got the Django app installed on my remote server with everything running 100%. Well done on this great article.</p>
    		</div>
			</li>
    	<li id="comment-1521" class="comment c2 c-y2011 c-m03 c-d08 c-h13 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/cfe7fcc83fda1cb8c810bc40413a7503" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://geotux.tuxfamily.org/" rel="external nofollow" class="url url">SamTux</a></span></div>
    		<div class="comment-meta">Posted March 8, 2011 at 1:56 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1521" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Thanks Kevan.</p>
<p>This post is very helpful!!!!!</p>
    		</div>
			</li>
    	<li id="comment-1533" class="comment c3 c-y2011 c-m03 c-d14 c-h09 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/f483645b5784f83ebd8bf2ee0bbdf59e" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Chris</span></div>
    		<div class="comment-meta">Posted March 14, 2011 at 9:22 am <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1533" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Thanks so Much!  This was Exactly what I needed to know for my Django/Apache project.  I’m running on andLinux over Windows XP.</p>
    		</div>
			</li>
    	<li id="comment-1534" class="comment c4 c-y2011 c-m03 c-d19 c-h17 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/8c2e36978538bcde99c6dd1bd2110efc" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Daniel</span></div>
    		<div class="comment-meta">Posted March 19, 2011 at 5:51 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1534" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Thank you very much Kevan! This is a great an clear manual to get things work on Ubuntu (10.10 in my case). Very helpful!!</p>
    		</div>
			</li>
    	<li id="comment-1536" class="comment c5 c-y2011 c-m03 c-d23 c-h12 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/5b1dbfff25fdbb00f02470326469141d" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Mike Sanders</span></div>
    		<div class="comment-meta">Posted March 23, 2011 at 12:46 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1536" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Thanks man! One of the best and goal-oriented tutorials on this topic.  I’m  merry as a lark now to have a running DJANGO on my UBUNTU!</p>
    		</div>
			</li>
    	<li id="comment-1553" class="comment c6 c-y2011 c-m06 c-d30 c-h18 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/dd924c282d712072c505eac8d580bce1" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Gonzalo</span></div>
    		<div class="comment-meta">Posted June 30, 2011 at 6:55 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1553" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Hi, thanks for the tutorial, it was very helpfull!!!. But when i try to install this configuration in a Debian Lenny (instaling apache2 and libapache2-mod-wsgi) and restart apache it throw me </p>
<p>Syntax error on line 7 of /etc/apache2/httpd.conf:<br>
Invalid command ‘WSGIScriptAlias’, perhaps misspelled or defined by a module not included in the server configuration<br>
Action ‘configtest’ failed.<br>
The Apache error log may have more information.<br>
 failed!</p>
<p>/etc/apace2/httpd.conf:</p>
<p><code></code></p><code>
<p>    DocumentRoot /var/www/proyect</p>
<p>        Order allow,deny<br>
        Allow from all</p>
<p>    WSGIScriptAlias / /var/www/proyect/apache/django.wsgi</p>
<p>ServerName localhost</p>
<p>    SetHandler None</p>
<p>    SetHandler None</p>
</code><p><code>Alias /media /var/www/media<br>
Alias /proyect /var/www/proyect<br>
</code></p>
<p>Any idea?.</p>
<p>Thanks againg</p>
    		</div>
			</li>
    	<li id="comment-1554" class="comment c7 byuser comment-author-admin bypostauthor c-y2011 c-m06 c-d30 c-h19 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/6f7d96d1b44b09345dc8ee1451196d10" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://www.webcode.com.au/" rel="external nofollow" class="url url">Kevan Stannard</a></span></div>
    		<div class="comment-meta">Posted June 30, 2011 at 7:14 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1554" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Hi Gonzalo, looks like there might occasionally be a problem installing mod_wsgi on Debian Lenny. Have a look at <a href="http://almad.nejsem.in/blog/2010/6/9/articles/invalid-command-wsgiscriptalias-debian-lenny/" rel="nofollow">http://almad.nejsem.in/blog/2010/6/9/articles/invalid-command-wsgiscriptalias-debian-lenny/</a> which suggests reinstalling mod_wsgi (copied here for reference):</p>
<p>dpkg –purge –force-all libapache2-mod-wsgi<br>
apt-get install libapache2-mod-wsgi</p>
    		</div>
			</li>
    	<li id="comment-1555" class="comment c8 c-y2011 c-m07 c-d01 c-h17 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/dd924c282d712072c505eac8d580bce1" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Gonzalo</span></div>
    		<div class="comment-meta">Posted July 1, 2011 at 5:14 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1555" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Hi Kendal, thanks very much. I was thinking in reinstall mod_wsgi, but finally i found my mistake. I’m install it in multiple servers and in that server i forget to create /var/www/proyect/apache/django.wsgi file. </p>
<p>Thanks!!</p>
    		</div>
			</li>
    	<li id="comment-1562" class="comment c9 c-y2011 c-m07 c-d17 c-h03 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/00a2a853d2403be35c10fe47cea6ce52" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://www.footloosemoose.com/" rel="external nofollow" class="url url">Michael</a></span></div>
    		<div class="comment-meta">Posted July 17, 2011 at 3:11 am <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1562" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Thanks very much for taking the time to put this together… what a great resource.</p>
<p>It would’ve taken me ages to figure all of this out.  I’m loving Python and Django… the linux/server/deployment bit is really the only frustrating part.  </p>
<p>Thanks again.</p>
    		</div>
			</li>
    	<li id="comment-1576" class="comment c10 c-y2011 c-m08 c-d04 c-h19 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/912d609b2024c84ac9e63d479566eddd" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://agiliq.com/" rel="external nofollow" class="url url">akshar</a></span></div>
    		<div class="comment-meta">Posted August 4, 2011 at 7:14 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1576" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Hi Kevan,</p>
<p>Thanks for the great tutorial. Now, i have a fully functioning server with django, apache and mod_wsgi installed. This tutorial delivers what it promises. Helped a lot. Great work.</p>
<p>Cheers,<br>
Akshar</p>
    		</div>
			</li>
    	<li id="comment-1585" class="comment c11 c-y2011 c-m08 c-d08 c-h16 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/71a8314731b2480733aa5ff40d4dd2ce" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Danny Goodall</span></div>
    		<div class="comment-meta">Posted August 8, 2011 at 4:24 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1585" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Excellent walk-through. Took a lot of the pain away if deploying Django to EC2.</p>
<p>Thanks!</p>
    		</div>
			</li>
    	<li id="comment-1591" class="comment c12 c-y2011 c-m08 c-d19 c-h14 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/848681bfbf1930fa61fae89c0b236ae6" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Percila</span></div>
    		<div class="comment-meta">Posted August 19, 2011 at 2:10 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1591" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Bless You Kevan!!! av learnt so much about deploying Django just from these few steps. thanx so much</p>
    		</div>
			</li>
    	<li id="comment-1592" class="comment c13 c-y2011 c-m08 c-d31 c-h19 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/3518d9662b355dc3c99d01def790ce85" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">rafael</span></div>
    		<div class="comment-meta">Posted August 31, 2011 at 7:32 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1592" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>the wsgi.djangoserver works, but when I enable the hello.djangoserver,<br>
everything stops working, even the wsgi.djangoserver sites outputs a 500 Internal Server Error. When I disable the hello site the wsgi.djangoserver works again.</p>
<p>I have triple-checked all my files but I havent found anything.</p>
<p>when I reload apache2 I get the errors:<br>
apache2:could not reliablydetermine the server’s fully qualified domain name, using 192.168.10.90 for ServerName</p>
<p>HELP</p>
    		</div>
			</li>
    	<li id="comment-1593" class="comment c14 byuser comment-author-admin bypostauthor c-y2011 c-m08 c-d31 c-h20 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/6f7d96d1b44b09345dc8ee1451196d10" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://www.webcode.com.au/" rel="external nofollow" class="url url">Kevan Stannard</a></span></div>
    		<div class="comment-meta">Posted August 31, 2011 at 8:23 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1593" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Hi Rafael, is there any error message showing up in the apache error log file? For a default install it should be in /var/log/apache2/error.log</p>
    		</div>
			</li>
    	<li id="comment-1594" class="comment c15 c-y2011 c-m08 c-d31 c-h20 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/3518d9662b355dc3c99d01def790ce85" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">rafael</span></div>
    		<div class="comment-meta">Posted August 31, 2011 at 8:45 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1594" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>[error] [client 192.168.10.3] mod_wsgi (pid=25250): target WSGI scripy ‘/srv/hello/apache/django.wsgi’ cannot be loaded as Python module.</p>
<p>[error] [client 192.168.10.3]mod_wsgi (pid=25250): Exception occured processing WSGI script ‘/srv/www/hello/apache/django.wsgi</p>
<p>[error] [client 192.168.10.3]Traceback (most recent call last):</p>
<p>[error] [client 192.168.10.3]File “/srv/www/hello/apache/django.wsgi” line 10 in </p>
<p>[error] [client 192.168.10.3]import django.core.handler.wsgi<br>
[error] [client 192.168.10.3]ImportError: No module named handler.wsgi</p>
<p>can’t start anything with that.. “Cannot be loaded as a Python Module”, sounds a bit guilty to me!</p>
    		</div>
			</li>
    	<li id="comment-1595" class="comment c16 byuser comment-author-admin bypostauthor c-y2011 c-m08 c-d31 c-h20 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/6f7d96d1b44b09345dc8ee1451196d10" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://www.webcode.com.au/" rel="external nofollow" class="url url">Kevan Stannard</a></span></div>
    		<div class="comment-meta">Posted August 31, 2011 at 8:54 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1595" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Looks like the wsgi module is missing or has a problem. Try the following:</p>
<p>&gt; sudo apt-get install libapache2-mod-wsgi</p>
    		</div>
			</li>
    	<li id="comment-1596" class="comment c17 c-y2011 c-m08 c-d31 c-h21 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/3518d9662b355dc3c99d01def790ce85" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">rafael</span></div>
    		<div class="comment-meta">Posted August 31, 2011 at 9:00 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1596" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>the module is already installed but I did what you said, then reloaded my apache server and nothing happened. We get the same errors.</p>
    		</div>
			</li>
    	<li id="comment-1597" class="comment c18 c-y2011 c-m08 c-d31 c-h21 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/3518d9662b355dc3c99d01def790ce85" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">rafael</span></div>
    		<div class="comment-meta">Posted August 31, 2011 at 9:01 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1597" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>I am actually using ubuntu server 11.04, is that maybe the issue?</p>
    		</div>
			</li>
    	<li id="comment-1598" class="comment c19 byuser comment-author-admin bypostauthor c-y2011 c-m08 c-d31 c-h22 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/6f7d96d1b44b09345dc8ee1451196d10" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://www.webcode.com.au/" rel="external nofollow" class="url url">Kevan Stannard</a></span></div>
    		<div class="comment-meta">Posted August 31, 2011 at 10:29 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1598" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>It could be a version compatibility problem with python and the wsgi module. Find your mod_wsgi.so file and run the following command:</p>
<p>&gt; ldd mod_wsgi.so</p>
<p>The version of python in the output should match the actual version of python you have installed.</p>
<p>Otherwise, try posting a message to the mod wsgi group. Would be great to know if you find a solution.</p>
<p><a href="http://groups.google.com/group/modwsgi" rel="nofollow">http://groups.google.com/group/modwsgi</a></p>
    		</div>
			</li>
    	<li id="comment-1599" class="comment c20 c-y2011 c-m09 c-d03 c-h07 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/d292a650bc14278b32fe2e411f9305de" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://www.conlance.eu/" rel="external nofollow" class="url url">Florian</a></span></div>
    		<div class="comment-meta">Posted September 3, 2011 at 7:34 am <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1599" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Great Tutorial, all worked easy and fine. Thanks a lot!</p>
    		</div>
			</li>
    	<li id="comment-1603" class="comment c21 c-y2011 c-m09 c-d07 c-h23 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/c125f576c3a08c0c1d4330bc565ae28c" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Chris</span></div>
    		<div class="comment-meta">Posted September 7, 2011 at 11:42 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1603" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>This is the most intuitive Django + Mod WSGI tutorial I’ve found so far. Great job. Now if only the standard Django docs were this easy to understand…</p>
    		</div>
			</li>
    	<li id="comment-1618" class="comment c22 c-y2011 c-m09 c-d22 c-h14 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/2e1d9d12cbf5cb5644308b36031d3ba0" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://aydantasdemir.blogspot.com/" rel="external nofollow" class="url url">Aydan</a></span></div>
    		<div class="comment-meta">Posted September 22, 2011 at 2:03 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1618" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>I think this is the best Django+mod_wsgi tutoriol.</p>
<p>Hint: For ubuntu “sudo django-admin.py startproject hello” int work<br>
Use “sudo django-admin startproject hello” <img src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/icon_wink.gif" alt=";)" class="wp-smiley"> </p>
    		</div>
			</li>
    	<li id="comment-1619" class="comment c23 byuser comment-author-admin bypostauthor c-y2011 c-m11 c-d22 c-h08 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/6f7d96d1b44b09345dc8ee1451196d10" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://www.webcode.com.au/" rel="external nofollow" class="url url">Kevan Stannard</a></span></div>
    		<div class="comment-meta">Posted November 22, 2011 at 8:52 am <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1619" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Just received an email from Dave Parizek on this entry. Copying his message here in case it helps others. Many thanks Dave.</p>
<p>Hi:</p>
<p>In your article here:</p>
<p><a href="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/Installing Django with Apache and mod_wsgi on Ubuntu 10.04.html" rel="nofollow">http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/</a></p>
<p>you need to tell people to remove any default files in</p>
<p>/etc/apache2/sites-enabled</p>
<p>I could not get wsgi test to work until I noticed a default file in sites-enabled was setting a different document root than I wanted.</p>
<p>Thanks!</p>
    		</div>
			</li>
    	<li id="comment-1621" class="comment c24 c-y2011 c-m12 c-d01 c-h06 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/21918c68f85234c544c5c6c892a42731" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Dave</span></div>
    		<div class="comment-meta">Posted December 1, 2011 at 6:20 am <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1621" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>This is a great resource, many thanks Kevan. Everything followed to the tee and worked immediately.<br>
One thing I must ask though : I’m somewhat of a newbie in this whole arena of Django and WSGI (although have been working with WAMP/LAMP for nigh on 15 years). I’ve been given a django project which is currently being run under django’s own HTTP service (currently running via a console command as <cite>python manage.py runserver my_IP_Address:8000</cite>) but  I understand that to take that and then host it in a ‘production’ environment I should be using Apache2 and MOD-WSGI.<br>
Is there an easy way of taking your notes eloquently written here and then applying them to a django project already coded, assuming the project has been written using normal framework filenames and structure?</p>
    		</div>
			</li>
    	<li id="comment-1622" class="comment c25 byuser comment-author-admin bypostauthor c-y2011 c-m12 c-d01 c-h10 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/6f7d96d1b44b09345dc8ee1451196d10" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://www.webcode.com.au/" rel="external nofollow" class="url url">Kevan Stannard</a></span></div>
    		<div class="comment-meta">Posted December 1, 2011 at 10:29 am <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1622" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Hi Dave, I’m not an expert in production deployment so don’t want to give you any misleading info. Probably best to post this question the Django user group.</p>
<p><a href="https://groups.google.com/forum/#" rel="nofollow">https://groups.google.com/forum/#</a>!forum/django-users</p>
<p>All the best with your project.</p>
    		</div>
			</li>
    	<li id="comment-1646" class="comment c26 byuser comment-author-admin bypostauthor c-y2012 c-m03 c-d28 c-h23 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/6f7d96d1b44b09345dc8ee1451196d10" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n"><a href="http://www.webcode.com.au/" rel="external nofollow" class="url url">Kevan Stannard</a></span></div>
    		<div class="comment-meta">Posted March 28, 2012 at 11:44 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1646" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Email received from Diego ( kobylkin.com )</p>
<p>Kevan,</p>
<p>I am referring to your walkthrough <a href="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/Installing Django with Apache and mod_wsgi on Ubuntu 10.04.html" rel="nofollow">http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/</a></p>
<p>It did not work for me on the clean install. I was getting the following error:  ImportError: Could not import settings ‘hello.settings’ (Is it on sys.path?): No module named hello.settings</p>
<p>One other commenter has had the same problem.<br>
I had to change my django.wsgi to this:</p>
<p>import os<br>
import sys</p>
<p>sys.path.insert(0,os.sep.join(os.path.abspath(__file__).split(os.sep)[:-2]))<br>
os.environ['DJANGO_SETTINGS_MODULE'] = ‘testbed.settings’</p>
<p>import django.core.handlers.wsgi<br>
application = django.core.handlers.wsgi.WSGIHandler()</p>
<p>This is the string that I have added instead your code there:<br>
sys.path.insert(0,os.sep.join(os.path.abspath(__file__).split(os.sep)[:-2]))</p>
<p>Pls. consider adjusting your post as the comments are closed. Hope this will save a few hours to othere people trying out your otherwise very usefull walkthrough.</p>
<p>Bests,<br>
Diego</p>
    		</div>
			</li>
    	<li id="comment-1656" class="comment c27 c-y2012 c-m06 c-d17 c-h13 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/356d68559ef6b2e097d8b37d30e5c438" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Chris Handy</span></div>
    		<div class="comment-meta">Posted June 17, 2012 at 1:57 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1656" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>Just to say thanks for the welcome info. First time I set up Django + Apache and this was hands down the best info I found. I especially like the fact that you get wsgi part working first, since this caused me a bit of a problem on my particular machine that I was able to trace due to your article. Kudos!</p>
    		</div>
			</li>
    	<li id="comment-1658" class="comment c28 c-y2012 c-m06 c-d20 c-h19 alt depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/ecf2436c85cd25999cd30216e79c11a6" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Paul Smith</span></div>
    		<div class="comment-meta">Posted June 20, 2012 at 7:19 pm <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1658" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>To avoid the error:<br>
<i>ImportError: Could not import settings ‘hello.settings’ (Is it on sys.path?): No module named hello.settings</i></p>
<p>Remove the three lines in django.wsgi that relate to setting the path and simply replace them with:<br>
<code>sys.path.append('/srv/www')<br>
sys.path.append('/srv/www/hello')</code></p>
    		</div>
			</li>
    	<li id="comment-1659" class="comment c29 c-y2012 c-m06 c-d23 c-h07 depth-1">
    		<div class="comment-author vcard"><img alt="" src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/e8c58eaccf62d3ff7a39140bb0e762f6" class="photo avatar avatar-80 photo" height="80" width="80"> <span class="fn n">Kal</span></div>
    		<div class="comment-meta">Posted June 23, 2012 at 7:12 am <span class="meta-sep">|</span> <a href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#comment-1659" title="Permalink to this comment">Permalink</a></div>
                <div class="comment-content">
        		<p>This was by far the best tutorial I have seen for this. Btw, small difference for me. In the virtual host files, where you have “DocumentRoot /srv/www/hello”, I had to put one more /hello at the end of it. Because the settings.py file was in that folder. Maybe because of a newer version? I’m not sure.</p>
    		</div>
			</li>
					</ol>

        			<div id="comments-nav-below" class="comment-navigation">
        			     <div class="paginated-comments-links"></div>
                    </div>
					
				</div><!-- #comments-list .comments -->

			




				<div id="trackbacks-list" class="comments">
					<h3><span>2</span> Trackbacks</h3>
					
					<ol>
    		<li id="comment-1223" class="pingback t30 c-y2010 c-m12 c-d12 c-h16 alt depth-1">
    			<div class="comment-author">By <a href="http://www.ubuntu-news.net/2010/12/12/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/" rel="external nofollow" class="url">Installing Django with Apache and mod_wsgi on Ubuntu 10.04 | Ubuntu-News - Your one stop for news about Ubuntu</a> on December 12, 2010 at 4:15 pm</div>
                <div class="comment-content">
    			<p>[...] This guide shows you how to install Django with Apache and mod_wsgi on Ubuntu 10.04 More here [...]</p>
			</div>
</li>
    		<li id="comment-1620" class="pingback t31 c-y2011 c-m11 c-d22 c-h18 depth-1">
    			<div class="comment-author">By <a href="http://parizek.com/?p=278" rel="external nofollow" class="url">Installing Django on Ubuntu 10.04 LTS</a> on November 22, 2011 at 6:23 pm</div>
                <div class="comment-content">
    			<p>[...] Mostly this article came from below, but I added to it: <a href="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/Installing Django with Apache and mod_wsgi on Ubuntu 10.04.html" rel="nofollow">http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/</a>     Django, Programming, [...]</p>
			</div>
</li>
					</ol>				
					
				</div><!-- #trackbacks-list .comments -->			

				


				<div id="respond">
    				<h3>Post a Comment</h3>
    				
    				<div id="cancel-comment-reply"><a rel="nofollow" id="cancel-comment-reply-link" href="http://blog.stannard.net.au/2010/12/11/installing-django-with-apache-and-mod_wsgi-on-ubuntu-10-04/#respond" style="display:none;">Click here to cancel reply.</a></div>

					<div class="formcontainer">	
					
					

						<form id="commentform" action="http://blog.stannard.net.au/wp-comments-post.php" method="post">


							<p id="comment-notes">Your email is <em>never</em> published nor shared. Required fields are marked <span class="required">*</span></p>

                            <div id="form-section-author" class="form-section">
    							<div class="form-label"><label for="author">Name</label> <span class="required">*</span></div>
    							<div class="form-input"><input id="author" name="author" type="text" value="" size="30" maxlength="20" tabindex="3"></div>
                            </div><!-- #form-section-author .form-section -->

                            <div id="form-section-email" class="form-section">
    							<div class="form-label"><label for="email">Email</label> <span class="required">*</span></div>
    							<div class="form-input"><input id="email" name="email" type="text" value="" size="30" maxlength="50" tabindex="4"></div>
                            </div><!-- #form-section-email .form-section -->

                            <div id="form-section-url" class="form-section">
    							<div class="form-label"><label for="url">Website</label></div>
    							<div class="form-input"><input id="url" name="url" type="text" value="" size="30" maxlength="50" tabindex="5"></div>
                            </div><!-- #form-section-url .form-section -->


                            <div id="form-section-comment" class="form-section">
    							<div class="form-label"><label for="comment">Comment</label></div>
    							<div class="form-textarea"><textarea id="comment" name="comment" cols="45" rows="8" tabindex="6"></textarea></div>
                            </div><!-- #form-section-comment .form-section -->
                            
                            <div id="form-allowed-tags" class="form-section">
                                <p><span>You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes:</span> <code>&lt;a href="" title=""&gt; &lt;abbr title=""&gt; &lt;acronym title=""&gt; &lt;b&gt; &lt;blockquote cite=""&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime=""&gt; &lt;em&gt; &lt;i&gt; &lt;q cite=""&gt; &lt;strike&gt; &lt;strong&gt; &lt;pre lang="" line="" escaped=""&gt; </code></p>
                            </div>
							
                                    
							<div class="form-submit"><input id="submit" name="submit" type="submit" value="Post Comment" tabindex="7"><input type="hidden" name="comment_post_ID" value="200"></div>

                            <input type="hidden" name="comment_post_ID" value="200" id="comment_post_ID">
<input type="hidden" name="comment_parent" id="comment_parent" value="0">
    

						</form><!-- #commentform -->
						
											
						
					</div><!-- .formcontainer -->

				</div><!-- #respond -->

			</div><!-- #comments -->

		</div><!-- #content -->
	</div><!-- #container -->


<div id="primary" class="aside main-aside">
	<ul class="xoxo">
<li id="linkcat-2" class="widgetcontainer widget_links"><h3 class="widgettitle">Links</h3>

	<ul class="xoxo blogroll">
<li><a href="http://www.coldfusiondesignpatterns.org/">ColdFusion Design Patterns</a></li>
<li><a href="http://minecraftpapercraft.com/" title="Minecraft Fan? You might like my newish Minecraft Papercraft site!">Minecraft Papercraft</a>
Minecraft Fan? You might like my newish Minecraft Papercraft site!</li>
<li><a href="http://www.objectorientedcoldfusion.org/">Object Oriented ColdFusion</a></li>

	</ul>
</li>
			<li id="search" class="widgetcontainer widget_thematic_search">				<h3 class="widgettitle"><label for="s">Search</label></h3>

	<form id="searchform" method="get" action="http://blog.stannard.net.au/">
		<div>
			<input id="s" name="s" type="text" value="To search, type and hit enter" onfocus="if (this.value == &#39;To search, type and hit enter&#39;) {this.value = &#39;&#39;;}" onblur="if (this.value == &#39;&#39;) {this.value = &#39;To search, type and hit enter&#39;;}" size="32" tabindex="1">
			<input id="searchsubmit" name="searchsubmit" type="submit" value="Search" tabindex="2">
		</div>
	</form></li><li id="pages-2" class="widgetcontainer widget_pages"><h3 class="widgettitle">Pages</h3>
		<ul>
			<li class="page_item page-item-43"><a href="http://blog.stannard.net.au/about/" title="About">About</a></li>
<li class="page_item page-item-37"><a href="http://blog.stannard.net.au/nested-set-trees/" title="Nested Set Trees">Nested Set Trees</a>
<ul class="children">
	<li class="page_item page-item-41"><a href="http://blog.stannard.net.au/nested-set-trees/nested-set-trees-objects/" title="Nested Set Tree Objects">Nested Set Tree Objects</a></li>
</ul>
</li>
		</ul>
		</li><li id="categories-2" class="widgetcontainer widget_categories"><h3 class="widgettitle">Categories</h3>
		<ul>
	<li class="cat-item cat-item-3"><a href="http://blog.stannard.net.au/category/coldfusion/" title="View all posts filed under ColdFusion">ColdFusion</a>
</li>
	<li class="cat-item cat-item-32"><a href="http://blog.stannard.net.au/category/design-patterns/" title="View all posts filed under Design Patterns">Design Patterns</a>
</li>
	<li class="cat-item cat-item-80"><a href="http://blog.stannard.net.au/category/django/" title="View all posts filed under Django">Django</a>
</li>
	<li class="cat-item cat-item-75"><a href="http://blog.stannard.net.au/category/flex/" title="View all posts filed under Flex">Flex</a>
</li>
	<li class="cat-item cat-item-104"><a href="http://blog.stannard.net.au/category/google-app-engine/" title="View all posts filed under Google App Engine">Google App Engine</a>
</li>
	<li class="cat-item cat-item-55"><a href="http://blog.stannard.net.au/category/groovy/" title="View all posts filed under Groovy">Groovy</a>
</li>
	<li class="cat-item cat-item-64"><a href="http://blog.stannard.net.au/category/javascript/" title="View all posts filed under JavaScript">JavaScript</a>
</li>
	<li class="cat-item cat-item-15"><a href="http://blog.stannard.net.au/category/jquery/" title="View all posts filed under jQuery">jQuery</a>
</li>
	<li class="cat-item cat-item-19"><a href="http://blog.stannard.net.au/category/mssql/" title="View all posts filed under MSSQL">MSSQL</a>
</li>
	<li class="cat-item cat-item-12"><a href="http://blog.stannard.net.au/category/mysql/" title="View all posts filed under MySQL">MySQL</a>
</li>
	<li class="cat-item cat-item-22"><a href="http://blog.stannard.net.au/category/nested-set-trees/" title="View all posts filed under Nested Set Trees">Nested Set Trees</a>
</li>
	<li class="cat-item cat-item-114"><a href="http://blog.stannard.net.au/category/nodejs/" title="View all posts filed under NodeJS">NodeJS</a>
</li>
	<li class="cat-item cat-item-20"><a href="http://blog.stannard.net.au/category/oop/" title="View all posts filed under OOP">OOP</a>
</li>
	<li class="cat-item cat-item-8"><a href="http://blog.stannard.net.au/category/railo/" title="View all posts filed under Railo">Railo</a>
</li>
	<li class="cat-item cat-item-13"><a href="http://blog.stannard.net.au/category/ubuntu/" title="View all posts filed under Ubuntu">Ubuntu</a>
</li>
	<li class="cat-item cat-item-39"><a href="http://blog.stannard.net.au/category/unit-testing/" title="View all posts filed under Unit Testing">Unit Testing</a>
</li>
	<li class="cat-item cat-item-6"><a href="http://blog.stannard.net.au/category/web-development/" title="View all posts filed under Web Development">Web Development</a>
</li>
		</ul>
</li><li id="tag_cloud-2" class="widgetcontainer widget_tag_cloud"><h3 class="widgettitle">Tags</h3>
<div><a href="http://blog.stannard.net.au/tag/abstraction/" class="tag-link-24" title="1 topic" style="font-size: 8pt;">Abstraction</a>
<a href="http://blog.stannard.net.au/tag/ant/" class="tag-link-41" title="2 topics" style="font-size: 11.876923076923pt;">Ant</a>
<a href="http://blog.stannard.net.au/tag/apache/" class="tag-link-14" title="3 topics" style="font-size: 14.461538461538pt;">Apache</a>
<a href="http://blog.stannard.net.au/tag/autocomplete/" class="tag-link-16" title="1 topic" style="font-size: 8pt;">Autocomplete</a>
<a href="http://blog.stannard.net.au/tag/cfcunit/" class="tag-link-44" title="2 topics" style="font-size: 11.876923076923pt;">CFCUnit</a>
<a href="http://blog.stannard.net.au/tag/codexwiki/" class="tag-link-9" title="1 topic" style="font-size: 8pt;">CodexWiki</a>
<a href="http://blog.stannard.net.au/tag/coldfusion/" class="tag-link-3" title="1 topic" style="font-size: 8pt;">ColdFusion</a>
<a href="http://blog.stannard.net.au/tag/components/" class="tag-link-5" title="2 topics" style="font-size: 11.876923076923pt;">Components</a>
<a href="http://blog.stannard.net.au/tag/constants/" class="tag-link-23" title="1 topic" style="font-size: 8pt;">Constants</a>
<a href="http://blog.stannard.net.au/tag/css/" class="tag-link-7" title="1 topic" style="font-size: 8pt;">CSS</a>
<a href="http://blog.stannard.net.au/tag/dao/" class="tag-link-30" title="1 topic" style="font-size: 8pt;">DAO</a>
<a href="http://blog.stannard.net.au/tag/dates/" class="tag-link-36" title="1 topic" style="font-size: 8pt;">Dates</a>
<a href="http://blog.stannard.net.au/tag/dependency-injection/" class="tag-link-62" title="2 topics" style="font-size: 11.876923076923pt;">Dependency Injection</a>
<a href="http://blog.stannard.net.au/tag/design-patterns/" class="tag-link-32" title="1 topic" style="font-size: 8pt;">Design Patterns</a>
<a href="http://blog.stannard.net.au/tag/file/" class="tag-link-37" title="1 topic" style="font-size: 8pt;">File</a>
<a href="http://blog.stannard.net.au/tag/flash/" class="tag-link-46" title="1 topic" style="font-size: 8pt;">Flash</a>
<a href="http://blog.stannard.net.au/tag/forms/" class="tag-link-28" title="2 topics" style="font-size: 11.876923076923pt;">Forms</a>
<a href="http://blog.stannard.net.au/tag/frameworks/" class="tag-link-26" title="2 topics" style="font-size: 11.876923076923pt;">Frameworks</a>
<a href="http://blog.stannard.net.au/tag/gateways/" class="tag-link-29" title="1 topic" style="font-size: 8pt;">Gateways</a>
<a href="http://blog.stannard.net.au/tag/groovy/" class="tag-link-55" title="3 topics" style="font-size: 14.461538461538pt;">Groovy</a>
<a href="http://blog.stannard.net.au/tag/guice/" class="tag-link-61" title="2 topics" style="font-size: 11.876923076923pt;">Guice</a>
<a href="http://blog.stannard.net.au/tag/hosting/" class="tag-link-27" title="1 topic" style="font-size: 8pt;">Hosting</a>
<a href="http://blog.stannard.net.au/tag/html/" class="tag-link-57" title="2 topics" style="font-size: 11.876923076923pt;">HTML</a>
<a href="http://blog.stannard.net.au/tag/iis/" class="tag-link-35" title="1 topic" style="font-size: 8pt;">IIS</a>
<a href="http://blog.stannard.net.au/tag/java/" class="tag-link-17" title="3 topics" style="font-size: 14.461538461538pt;">Java</a>
<a href="http://blog.stannard.net.au/tag/javascript/" class="tag-link-64" title="2 topics" style="font-size: 11.876923076923pt;">JavaScript</a>
<a href="http://blog.stannard.net.au/tag/jquery/" class="tag-link-15" title="2 topics" style="font-size: 11.876923076923pt;">jQuery</a>
<a href="http://blog.stannard.net.au/tag/mappings/" class="tag-link-4" title="1 topic" style="font-size: 8pt;">Mappings</a>
<a href="http://blog.stannard.net.au/tag/mssql/" class="tag-link-19" title="2 topics" style="font-size: 11.876923076923pt;">MSSQL</a>
<a href="http://blog.stannard.net.au/tag/mysql/" class="tag-link-12" title="1 topic" style="font-size: 8pt;">MySQL</a>
<a href="http://blog.stannard.net.au/tag/nested-set-trees/" class="tag-link-22" title="4 topics" style="font-size: 16.615384615385pt;">Nested Set Trees</a>
<a href="http://blog.stannard.net.au/tag/oop/" class="tag-link-20" title="8 topics" style="font-size: 22pt;">OOP</a>
<a href="http://blog.stannard.net.au/tag/pagination/" class="tag-link-25" title="1 topic" style="font-size: 8pt;">pagination</a>
<a href="http://blog.stannard.net.au/tag/python/" class="tag-link-81" title="2 topics" style="font-size: 11.876923076923pt;">Python</a>
<a href="http://blog.stannard.net.au/tag/railo/" class="tag-link-8" title="5 topics" style="font-size: 18.338461538462pt;">Railo</a>
<a href="http://blog.stannard.net.au/tag/security/" class="tag-link-31" title="3 topics" style="font-size: 14.461538461538pt;">Security</a>
<a href="http://blog.stannard.net.au/tag/ses-urls/" class="tag-link-11" title="1 topic" style="font-size: 8pt;">SES URLs</a>
<a href="http://blog.stannard.net.au/tag/spring/" class="tag-link-18" title="1 topic" style="font-size: 8pt;">Spring</a>
<a href="http://blog.stannard.net.au/tag/strategy/" class="tag-link-34" title="1 topic" style="font-size: 8pt;">Strategy</a>
<a href="http://blog.stannard.net.au/tag/timestamp/" class="tag-link-38" title="1 topic" style="font-size: 8pt;">Timestamp</a>
<a href="http://blog.stannard.net.au/tag/tomcat/" class="tag-link-10" title="4 topics" style="font-size: 16.615384615385pt;">Tomcat</a>
<a href="http://blog.stannard.net.au/tag/tools/" class="tag-link-42" title="1 topic" style="font-size: 8pt;">Tools</a>
<a href="http://blog.stannard.net.au/tag/ubuntu/" class="tag-link-13" title="6 topics" style="font-size: 19.846153846154pt;">Ubuntu</a>
<a href="http://blog.stannard.net.au/tag/unit-testing/" class="tag-link-39" title="1 topic" style="font-size: 8pt;">Unit Testing</a>
<a href="http://blog.stannard.net.au/tag/validation/" class="tag-link-21" title="1 topic" style="font-size: 8pt;">Validation</a></div>
</li><li id="archives-2" class="widgetcontainer widget_archive"><h3 class="widgettitle">Archives</h3>
		<ul>
			<li><a href="http://blog.stannard.net.au/2012/02/" title="February 2012">February 2012</a></li>
	<li><a href="http://blog.stannard.net.au/2011/06/" title="June 2011">June 2011</a></li>
	<li><a href="http://blog.stannard.net.au/2011/02/" title="February 2011">February 2011</a></li>
	<li><a href="http://blog.stannard.net.au/2011/01/" title="January 2011">January 2011</a></li>
	<li><a href="http://blog.stannard.net.au/2010/12/" title="December 2010">December 2010</a></li>
	<li><a href="http://blog.stannard.net.au/2010/09/" title="September 2010">September 2010</a></li>
	<li><a href="http://blog.stannard.net.au/2010/07/" title="July 2010">July 2010</a></li>
	<li><a href="http://blog.stannard.net.au/2010/05/" title="May 2010">May 2010</a></li>
	<li><a href="http://blog.stannard.net.au/2010/04/" title="April 2010">April 2010</a></li>
	<li><a href="http://blog.stannard.net.au/2009/11/" title="November 2009">November 2009</a></li>
	<li><a href="http://blog.stannard.net.au/2009/07/" title="July 2009">July 2009</a></li>
	<li><a href="http://blog.stannard.net.au/2009/06/" title="June 2009">June 2009</a></li>
	<li><a href="http://blog.stannard.net.au/2008/08/" title="August 2008">August 2008</a></li>
	<li><a href="http://blog.stannard.net.au/2008/06/" title="June 2008">June 2008</a></li>
	<li><a href="http://blog.stannard.net.au/2008/05/" title="May 2008">May 2008</a></li>
	<li><a href="http://blog.stannard.net.au/2008/03/" title="March 2008">March 2008</a></li>
	<li><a href="http://blog.stannard.net.au/2007/11/" title="November 2007">November 2007</a></li>
	<li><a href="http://blog.stannard.net.au/2007/10/" title="October 2007">October 2007</a></li>
	<li><a href="http://blog.stannard.net.au/2007/09/" title="September 2007">September 2007</a></li>
	<li><a href="http://blog.stannard.net.au/2007/02/" title="February 2007">February 2007</a></li>
	<li><a href="http://blog.stannard.net.au/2007/01/" title="January 2007">January 2007</a></li>
	<li><a href="http://blog.stannard.net.au/2006/12/" title="December 2006">December 2006</a></li>
	<li><a href="http://blog.stannard.net.au/2006/11/" title="November 2006">November 2006</a></li>
	<li><a href="http://blog.stannard.net.au/2006/10/" title="October 2006">October 2006</a></li>
	<li><a href="http://blog.stannard.net.au/2006/09/" title="September 2006">September 2006</a></li>
	<li><a href="http://blog.stannard.net.au/2006/08/" title="August 2006">August 2006</a></li>
		</ul>
</li><li id="text-3" class="widgetcontainer widget_text">			<div class="textwidget"><a href="https://developer.mozilla.org/en/JavaScript" title="Learn JS"><img src="./Installing Django with Apache and mod_wsgi on Ubuntu 10.04_files/promotejsh.gif" height="150" width="180" alt="Learn JS"></a>
</div>
		</li>
	</ul>
</div><!-- #primary .aside -->

<div id="secondary" class="aside main-aside">
	<ul class="xoxo">
		<li id="rss-links" class="widgetcontainer widget_thematic_rsslinks">			<h3 class="widgettitle">RSS Links</h3>
			<ul>
				<li><a href="http://blog.stannard.net.au/feed/" title="Mere Mortals Posts RSS feed" rel="alternate nofollow" type="application/rss+xml">All posts</a></li>
				<li><a href="http://blog.stannard.net.au/comments/feed/" title="Mere Mortals Comments RSS feed" rel="alternate nofollow" type="application/rss+xml">All comments</a></li>
			</ul>
		</li>
	</ul>
</div><!-- #secondary .aside -->

    </div><!-- #main -->
    
        

	<div id="footer">
    
            
        <div id="siteinfo">        

    Powered by <a class="wp-link" href="http://wordpress.org/" title="WordPress" rel="generator">WordPress</a>. Built on the <a class="theme-link" href="http://themeshaper.com/thematic/" title="Thematic Theme Framework" rel="designer">Thematic Theme Framework</a>.    
		</div><!-- #siteinfo -->
    
            
	</div><!-- #footer -->
	
      

</div><!-- #wrapper .hfeed -->



</body></html>